<%@ page import="com.greyfit.model.UserProgram" %>



<div class="fieldcontain ${hasErrors(bean: userProgramInstance, field: 'greyFitUser', 'error')} required">
	<label for="greyFitUser">
		<g:message code="userProgram.greyFitUser.label" default="Grey Fit User" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="greyFitUser" name="greyFitUser.id" from="${com.greyfit.security.GreyFitUser.list()}" optionKey="id" required="" value="${userProgramInstance?.greyFitUser?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userProgramInstance, field: 'program', 'error')} required">
	<label for="program">
		<g:message code="userProgram.program.label" default="Program" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="program" name="program.id" from="${com.greyfit.model.Program.list()}" optionKey="id" required="" value="${userProgramInstance?.program?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: userProgramInstance, field: 'startDate', 'error')} required">
	<label for="startDate">
		<g:message code="userProgram.startDate.label" default="Start Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="startDate" precision="day"  value="${userProgramInstance?.startDate}"  />
</div>

